interface Peo {
  name: string;
}
interface Like {
  like: string;
}
//交叉类型
type PeopleType = Peo & { age: number } & { sex: boolean } & Like;

let peo1: PeopleType = {
  name: "张三",
  age: 123,
  sex: true,
  like: "学习",
};
